import {
		https
	} from './http.js'

	export const login = (obj) => {
		//传入对应的配置对象
		return https({
			url: '/login', //接口地址
			method: 'post', //请求方法
			data: {
				...obj
			} //请求接口需要的参数
		})
	}

	export const setuserList = (obj) => {
		return https({
			url: '/setuserList',
			method: 'get',
			data: {
				...obj
			}
		})
	}

	export const setkeshi = () => {
		return https({
			url: '/setkeshi',
			method: 'get',
			data: {}
		})
	}

	export const seterkeshi = (id = 1) => {
		return https({
			url: '/seterkeshi',
			method: 'get',
			data: {
				id
			}
		})
	}

	// 查询单个科室所有医生
	export const seterkeshiDoctor = (obj) => {
		return https({
			url: '/seterkeshiDoctor',
			method: 'get',
			data: {
				...obj
			}
		})
	}
	
	// 查询单个医生排班及推荐医生
	export const setDoctorPaiban = (obj) => {
		return https({
			url: '/setDoctorPaiban',
			method: 'get',
			data: {
				...obj
			}
		})
	}
	
	// 增加患者就医表
	export const addhzjuy = (obj) => {
		return https({
			url: '/addJzhz',
			method: 'post',
			data: {
				...obj
			}
		})
	}
